# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-dotnet/gecko-sharp/gecko-sharp-0.12.ebuild,v 1.1 2007/02/24 23:38:45 compnerd Exp $

inherit mono multilib subversion autotools

ESVN_REPO_URI="svn://anonsvn.mono-project.com/source/trunk/${PN}"
ESVN_PROJECT="${PN}"

#MY_P="${P/${PN}/${PN}-2.0}"

DESCRIPTION="A Gtk# Mozilla binding"
HOMEPAGE="http://www.go-mono.com/"

LICENSE="GPL-2"
SLOT="2"
KEYWORDS="~amd64"
IUSE="doc"

S="${WORKDIR}/${MY_P}"

RDEPEND=">=dev-lang/mono-1.0"
DEPEND="${RDEPEND}
		doc? ( >=dev-util/monodoc-1.0 )
		>=dev-util/pkgconfig-0.19
		=dev-dotnet/olive-9999"

MAKEOPTS="${MAKEOPTS} -j1"

src_unpack() {
	subversion_src_unpack
}

src_compile() {
#cd ${S}/src
	export GACUTIL_FLAGS="-root ${D}/usr/$(get_libdir) -gacdir /usr/$(get_libdir) -package ${PN}-${SLOT}"

	eautoreconf || die "eautoreconf failed"
	#intltoolize --copy --force || die "intltoolize failed"
	glib-gettextize --copy --force || die "glib-gettextize failed"

	econf || die "configure failed"
	emake || die "make failed"
}

src_install() {
	make DESTDIR="${D}" install || die "install failed"
}
